//
//  GPContactRequest.m
//  Keping
//
//  Created by 23 on 2017/12/7.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import "GPContactRequest.h"

@interface GPContactRequest ()

/**请求地址*/
@property(nonatomic,copy) NSString *urlPath;

@end

@implementation GPContactRequest


- (instancetype)initWithURL:(NSString *)urlPath
{
    if (self = [super init]) { 
        self.urlPath = urlPath;
    }
    return self;
}


-(NSString *)requestUrl
{
    //kSosListURL
    return self.urlPath;
}

-(KRequestMethod)requestMethod
{
    if (self.isPost) {
        return KRequestMethodPOST;
    }

    return KRequestMethodGET;
}

-(id)requestArgument
{
    return self.params;
}

- (KResponseSerializerType)responseSerializerType
{
    return KResponseSerializerTypeJSON;
    
}

-(NSDictionary<NSString *,NSString *> *)requestHeaderFieldValueDictionary
{
    return @{@"Cookie":[KAppConfig sharedConfig].sessionId?:@""};
}


@end
